{extend name="public/layout" /}
{block name="body"}
    <form class="layui-form" > <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
        <div class="layui-card pd-bt-15">
            <div class="layui-row">
                <div class="layui-col-md8">
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$vo.title}" readonly class="layui-input">
                        </div>
                    </div>
                </div>
            </div>


            <div class="layui-row">
                <div class="layui-col-md8">
                    <div class="layui-form-item">
                        <label class="layui-form-label">详情</label>
                        <div class="layui-input-block">
                            <div>{$vo.detail}</div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="layui-row">
                <div class="layui-col-md4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">更新时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$vo.update_time}" readonly class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="layui-form-item">
                        <label class="layui-form-label">添加时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$vo.add_time}" readonly class="layui-input">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-row">
                <div class="layui-col-md2">
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否启用</label>
                        <div class="layui-input-block">
                            <input name="is_use" type="checkbox" lay-skin="switch" {if condition="isset($vo) && $vo.status eq 1"}checked{/if}>
                        </div>
                    </div>
                </div>


                <div class="layui-col-md2">
                    <div class="layui-form-item">
                        <label class="layui-form-label">浏览人数</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$vo.pv}" readonly class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-col-md2">
                    <div class="layui-form-item">
                        <label class="layui-form-label">点赞数</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$vo.pv}" readonly class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-col-md2">
                    <div class="layui-form-item">
                        <label class="layui-form-label">评论数</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$vo.pv}" readonly class="layui-input">
                        </div>
                    </div>
                </div>
            </div>

            <input type="hidden" name="id" value="{$vo.id}"/>
        </div>
    </form>
{/block}